WriteStandardKeyValueRepo

interface WriteStandardKeyValueRepo<Key, Value> : Repo

Functions

set
Link copied to clipboard
abstract suspend fun set(toSet: Map<Key, Value>)
unset
Link copied to clipboard
abstract suspend fun unset(toUnset: List<Key>)
unsetWithValues
Link copied to clipboard
abstract suspend fun unsetWithValues(toUnset: List<Value>)

Properties

onNewValue
Link copied to clipboard
abstract val onNewValue: Flow<Pair<Key, Value>>
onValueRemoved
Link copied to clipboard
abstract val onValueRemoved: Flow<Key>

Inheritors

KeyValueCacheRepo
Link copied to clipboard
StandardKeyValueRepo
Link copied to clipboard
WriteMapKeyValueRepo
Link copied to clipboard
MapKeyValueRepo
Link copied to clipboard
MapperWriteStandardKeyValueRepo
Link copied to clipboard
MapperStandardKeyValueRepo
Link copied to clipboard
KtorStandartKeyValueRepo
Link copied to clipboard
KtorWriteStandardKeyValueRepo
Link copied to clipboard
FileWriteStandardKeyValueRepo
Link copied to clipboard
FileStandardKeyValueRepo
Link copied to clipboard

Extensions

set
Link copied to clipboard
inline suspend fun <Key, Value> WriteStandardKeyValueRepo<Key, Value>.set(vararg toSet: Pair<Key, Value>)
inline suspend fun <Key, Value> WriteStandardKeyValueRepo<Key, Value>.set(k: Key, v: Value)
inline suspend fun <Key, Value> WriteStandardKeyValueRepo<Key, Value>.set(vararg toSet: Pair<Key, Value>)
inline suspend fun <Key, Value> WriteStandardKeyValueRepo<Key, Value>.set(k: Key, v: Value)
inline suspend fun <Key, Value> WriteStandardKeyValueRepo<Key, Value>.set(vararg toSet: Pair<Key, Value>)
inline suspend fun <Key, Value> WriteStandardKeyValueRepo<Key, Value>.set(k: Key, v: Value)
unset
Link copied to clipboard
inline suspend fun <Key, Value> WriteStandardKeyValueRepo<Key, Value>.unset(vararg k: Key)
inline suspend fun <Key, Value> WriteStandardKeyValueRepo<Key, Value>.unset(vararg k: Key)
inline suspend fun <Key, Value> WriteStandardKeyValueRepo<Key, Value>.unset(vararg k: Key)
unsetWithValues
Link copied to clipboard
inline suspend fun <Key, Value> WriteStandardKeyValueRepo<Key, Value>.unsetWithValues(vararg v: Value)
inline suspend fun <Key, Value> WriteStandardKeyValueRepo<Key, Value>.unsetWithValues(vararg v: Value)
inline suspend fun <Key, Value> WriteStandardKeyValueRepo<Key, Value>.unsetWithValues(vararg v: Value)
withMapper
Link copied to clipboard
inline fun <FromKey, FromValue, ToKey, ToValue> WriteStandardKeyValueRepo<ToKey, ToValue>.withMapper(crossinline keyFromToTo: suspend FromKey.() -> ToKey = { this as ToKey }, crossinline valueFromToTo: suspend FromValue.() -> ToValue = { this as ToValue }, crossinline keyToToFrom: suspend ToKey.() -> FromKey = { this as FromKey }, crossinline valueToToFrom: suspend ToValue.() -> FromValue = { this as FromValue }): WriteStandardKeyValueRepo<FromKey, FromValue>
inline fun <FromKey, FromValue, ToKey, ToValue> WriteStandardKeyValueRepo<ToKey, ToValue>.withMapper(crossinline keyFromToTo: suspend FromKey.() -> ToKey = { this as ToKey }, crossinline valueFromToTo: suspend FromValue.() -> ToValue = { this as ToValue }, crossinline keyToToFrom: suspend ToKey.() -> FromKey = { this as FromKey }, crossinline valueToToFrom: suspend ToValue.() -> FromValue = { this as FromValue }): WriteStandardKeyValueRepo<FromKey, FromValue>
inline fun <FromKey, FromValue, ToKey, ToValue> WriteStandardKeyValueRepo<ToKey, ToValue>.withMapper(crossinline keyFromToTo: suspend FromKey.() -> ToKey = { this as ToKey }, crossinline valueFromToTo: suspend FromValue.() -> ToValue = { this as ToValue }, crossinline keyToToFrom: suspend ToKey.() -> FromKey = { this as FromKey }, crossinline valueToToFrom: suspend ToValue.() -> FromValue = { this as FromValue }): WriteStandardKeyValueRepo<FromKey, FromValue>